package s08;

import base.Bean2;
import base.Bean3;
import net.sf.cglib.beans.BeanCopier;

/**
 * @author wangpp
 */
public class BeanCopierTest {
    public static void main(String[] args) {
        BeanCopier copier = BeanCopier.create(Bean2.class, Bean3.class, false);

        Bean2 b = new Bean2();
        b.setValue("111");

        Bean3 bean3 = new Bean3();

        copier.copy(b, bean3, null);

        System.out.println(bean3.getValue());
    }
}
